<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<center><b>Assigned duty: ${duty.name }</b></center>
<form name="myform" method="post" action="role.do?actionMethod=assign">
<input type="hidden" name="dutyId" value="${duty.id}">
<c:forEach var="source" items="${assignSourceList}">
<c:if test="${source.id>1}">
<c:out value="${source.tabString}" escapeXml="false"/><c:out value="${source.name}"/><br/>
<c:forEach var="srcAction" items="${createGroupAction}">
<c:if test="${srcAction.fwSource.id==source.id}">
<c:out value="&nbsp;&nbsp;&nbsp;&nbsp;" escapeXml="false"/>
<c:out value="${source.tabString}" escapeXml="false"/>
<input type="checkBox" name="srcActionId" value="${srcAction.id}" id="${srcAction.id}" >
<c:out value="${srcAction.name}"/>
<br/>
</c:if>
</c:forEach>
</c:if>
</c:forEach><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br><br></br>
</form>
<script language="javascript">
<!--
<c:forEach var="selectedAction" items="${duty.fwDutyActions}">
document.getElementById(${selectedAction.fwSrcAction.id}).checked=true;
</c:forEach>
//-->
</script>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>